package telas;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/** @author Chicao
 */
public class OiaChuva extends MIDlet implements CommandListener{
    private Jogo telaJogo;
    private Display tela;
    private Command cmdFim;
    public void startApp() {
        tela=Display.getDisplay(this);
        telaJogo=new Jogo();
        cmdFim=new Command("Terminar",Command.EXIT,0);
        telaJogo.addCommand(cmdFim);
        telaJogo.setCommandListener(this);
        tela.setCurrent(telaJogo);
    }
    public void pauseApp() {
    }
    public void destroyApp(boolean unconditional) {
    }
    public void commandAction(Command c, Displayable d) {
        destroyApp(true);
        notifyDestroyed();
    }
}
